

#pragma once
#include "BookBorrowing.h"

class BookBorrowingList
{
private:
	typedef struct Node
	{
		BookBorrowingInfo data;
		Node *next;
	}Node;

	Node* head;
public:
	BookBorrowingList();
	void addBorrowBooktoList(char *username,int status,char* name,char* ISBN);
	void addBorrowBooktoList(char *username,int status,int i,char* name,char* ISBN);
	void updateBorrowBooktoList();
	void loadBorrowBook();
	void getBorrowBook(char *username);
	void borrowBook();
	void returnBookbyUsername();

	void showBorrowingBook(char *username);
	void showReturnedBook(char *username);
	void freeBookBorrowing();
};